import { defineStore } from "pinia";
import { IMenu } from "@/type/Menu";
type IMenuList = {
  menuList: IMenu[]
}
export const useMenuStore = defineStore({
  id: 'menu',
  state: (): IMenuList => ({ menuList: [] }),
  getters: {
    getMenuList: (state) => {
      return state.menuList;
    }
  },
  actions: {
    setMenuList(list: IMenu[]) {
      this.menuList = list;
    }
  }
})